function printPoint(point:{x:number, y:number,z?:number}) {
  console.log(point.x);
  console.log(point.y);
  console.log(point.z);   //没传打印undefined
}

printPoint({x:123, y:321})
printPoint({x:123, y:321,z:111})
